package com.seckill.dto;

/**
 * @Creation_time 2017/9/7
 * @Theme 暴露秒杀地址dto
 * @Autor Xiao Yiyun
 */
public class Exposer {

    //是否可以暴露URL地址
    private boolean exposed;
    private int seckillId;
    //加密措施
    private String md5;
    //系统当前时间，方便游览器去控制服务器的时间
    //定位到秒杀计时工作(毫秒)
    private long nowTime;
    private long startTime;
    private long endTime;

    //定义构造函数
    public Exposer(boolean exposed, int seckillId, String md5) {
        this.exposed = exposed;
        this.seckillId = seckillId;
        this.md5 = md5;
    }

    public Exposer(boolean exposed, int seckillId, long nowTime, long startTime, long endTime) {
        this.exposed = exposed;
        this.seckillId = seckillId;
        this.nowTime = nowTime;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public Exposer(boolean exposed, int seckillId) {
        this.exposed = exposed;
        this.seckillId = seckillId;
    }
}
